<?php
// Example 1
$pizza  = "tomate1 tomate2 tomate3 tomate4 tomate5 tomate6";

$tomates = explode(" ", $pizza);

foreach ($tomates as $chave=>$valor) {
  	
  echo "$chave:  $valor<br>";
	
}
?>